package tcu.ead2021.leety.iotsystem_mqtt;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import tcu.ead2021.leety.iotsystem_mqtt.common.utils.mqttutils.SQLUtils;

import java.sql.SQLData;
import java.sql.SQLException;

@SpringBootApplication
public class Application {

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
        //test();
    }

    private static void test() {
        //device/4/6/3/BD1631436742312
//        String ID = UUID.randomUUID().toString();
//        MqttPushClient.MQTT_HOST = "tcp://124.70.14.87:1883";
//        MqttPushClient.MQTT_CLIENTID = ID;
//        MqttPushClient.MQTT_USERNAME = "1344";
//        MqttPushClient.MQTT_PASSWORD = "1344";
//        MqttPushClient client = MqttPushClient.getInstance();
//        client.subscribe("device/4/6/3/BD16115915009363114");
    }
}

